package com.zch.zhongchou.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.zhongchou.dao.BenefittypeMapper;
import com.zch.zhongchou.pojo.Benefittype;
import com.zch.zhongchou.service.BenefittypeService;
@Service("bfts")
public class BenefittypeServiceImpl implements BenefittypeService {

	@Autowired
	private BenefittypeMapper dao;
	@Override
	public int add(Benefittype benefitType) {
		// TODO Auto-generated method stub
		return dao.insert(benefitType);
	}

	@Override
	public int delete(int id) {
		// TODO Auto-generated method stub
		return dao.deleteByPrimaryKey(id);
	}

	@Override
	public int update(Benefittype benefitType) {
		// TODO Auto-generated method stub
		return dao.updateByPrimaryKey(benefitType);
	}

	@Override
	public Benefittype getBenefittypeById(int id) {
		// TODO Auto-generated method stub
		return dao.selectByPrimaryKey(id);
	}

}
